﻿using System.Globalization;

namespace IMES.Utils
{
    /// <summary>
    /// 语言设置-帮助处理类
    /// </summary>
    public static class LanguageHelper
    {
        /// <summary>
        /// 初始化设置系统语言
        /// </summary>
        /// <param name="language"></param>
        public static void InitSysLanguage(String language)
        {
            CultureInfo culture = CultureInfo.CreateSpecificCulture(language);
            Thread.CurrentThread.CurrentUICulture = culture;
            Thread.CurrentThread.CurrentCulture = culture;
            CultureInfo.DefaultThreadCurrentCulture = culture;
            CultureInfo.DefaultThreadCurrentUICulture = culture;
        }
        
    }
}
